/**
 * Created by udi on 2016/11/28.
 */


require(["jv", "vue"], function () {
  var Vue = require("vue");

  if (!location.map.token) {
    jv.setToken();
  }


  jv.post("/message/detail", {msgId: location.map.id}, function (res) {
    var vm = jv.vm = new Vue({
      el: '#app',
      data: res,
      computed: {},
      methods: {getTime: function (dt) {
        var now = new Date();
        dt = new Date(dt);
        if( now.getFullYear() == dt.getFullYear()){
          return dt.toString("MM-dd HH:mm");
        }
        return dt.toString("yyyy-MM-dd HH:mm");
      }}
    });

  });
});
